﻿using System;

using OurCouse.WebApp.Proxy;

namespace OurCouse.WebApp
{
	public partial class Register : System.Web.UI.Page
	{
		protected void Page_Load(object sender, EventArgs e)
		{
			//注册动作
			this._formRegSubmit.Click += new EventHandler(_formRegSubmit_Click);
		}

		void _formRegSubmit_Click(object sender, EventArgs e)
		{
			(new RegUserDBTaskProxy()).AddUser(this._formRegUsername.Text, this._formRegPassword.Text);
			
			Response.Redirect(Request.UrlReferrer.ToString());
		}
	}
}
